home *** CD-ROM | disk | FTP | other *** search
- //This is a separate file to allow link ordering(prinicpalClass got screwed up)
- #import "eTLiteral.h"
- @implementation eTISINDEXLiteral
- + toolAwake:theApp
- {
- char buf[MAXPATHLEN];
- NXBundle *bundle;
- id icon=nil;
-
- bundle = [NXBundle bundleForClass:[eTISINDEXLiteral class]];
- if ([bundle getPath:buf
- forResource:"eTISINDEXLiteralIcon" ofType:"tiff"] ) {
- icon=[[NXImage alloc] initFromFile:buf];
- [icon setName:"eTISINDEXLiteralIcon"];
- } else {
- NXLogError("Image not found: eTISINDEXLiteralIcon");
- }
- [theApp registerAnnotation: [eTISINDEXLiteral class]
- name: "eTISINDEXLiteral--HTML"
- RTFDirective: "eTISINDEXLiteral" // should never be used
- menuLabel: "HTML/ISINDEX tag"
- menuKey: '\0'
- menuIcon: (NXImage *) nil];
- return self;
- }
-
- - initFromPboard:thePB inDoc:theDoc linked:(BOOL) linked
- {
- [super initFromPboard:thePB inDoc: theDoc linked:linked];
- [self setTheRep:"<ISINDEX>\n" forFormat:HTMD_FMT];
- //self->isa = [eTLiteral class]; // promotion
- [self setImageComponent:
- [eTImageComponent newImageNamed:"eTISINDEXLiteralIcon"]];
- [imageComponent setDoc:theDoc];
- return self;
- }
- @end